Abraxus's Blog

Angstrom Revex Write Up

Details:

Points: 75

Jeopardy style CTF

Category: Reverse Engineering

Comments:

As an active reddit user, clam frequently browses r/ProgrammerHumor. However, the reposts about how hard regex is makes him go >:((((. So, clam decided to show them who's boss.

^(?=.*re)(?=.{21}[^_]{4}\}$)(?=.{14}b[^_]{2})(?=.{8}[C-L])(?=.{8}[B-F])(?=.{8}[^B-DF])(?=.{7}G(?<pepega>..).{7}t\k<pepega>)(?=.*u[^z].$)(?=.{11}(?<pepeega>[13])s.{2}(?!\k<pepeega>)[13]s)(?=.*_.{2}_)(?=actf\{)(?=.{21}[p-t])(?=.*1.*3)(?=.{20}(?=.*u)(?=.*y)(?=.*z)(?=.*q)(?=.*_))(?=.*Ex)

Write up:

I opened up the website: https://regex101.com/ which is fantastic since it allows for regex since it allows you to debug.

I decided to split the regex into all of its portions so that I could figure out what each part did:

Using all of these I got:

actf{reGEx_1s_b3stEx_qzuy}